<template>
    <h3>子组件</h3>
    <!-- 作用域插槽 -->
    <slot :msg="msg" num="123">插槽的默认内容</slot>
    <!-- 具名插槽 -->
    <slot name="slot1" :msg="msg" flag="true"></slot>
</template>
<script setup>
import { ref } from 'vue'
const msg = ref('Hello Vue')
setTimeout(() => {
    msg.value = 'Hello World'
}, 3000)
</script>
<style scoped>
    
</style>